 {% load staticfiles %}
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>Bootstrap 101 Template</title>

    <!-- Bootstrap -->
    <link href="{% static '' %}default/css/bootstrap.min.css" rel="stylesheet">
      <link href="{% static '' %}default/css/style.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
{% include 'default/block_nav.html' %}


<div class="container theme-showcase" role="main">


      <div class="page-header">
        <h1>帐户设置 </h1>
      </div>
      <div class="row">
        <div class="col-md-12">

        <div style="margin: 10px auto;width: 300px;">

            <form class="form-horizontal" method="POST" enctype="multipart/form-data">
             {% csrf_token %}
    <fieldset>

    <div class="control-group">

          <!-- Text input-->
          <label class="control-label" for="input01">姓名</label>
          <div class="controls">
            <input type="text" name="name" class="input-xlarge" value="{{ user_profile.name }}">
          </div>
        </div>

    <div class="control-group">

          <!-- Text input-->
          <label class="control-label" for="input01">电话</label>
          <div class="controls">
            <input type="text" placeholder="" name="tel" class="input-xlarge" {% if user_profile.tel %} value="{{ user_profile.tel }}"{% endif %}>
          </div>
        </div>

    <div class="control-group">
          <label class="control-label">头像</label>

        <div>
            <img src="/uploads/{{ user_profile.avatar }}" alt="" height="150" width="150"/>
        </div>

          <!-- File Upload -->
          <div class="controls">
            <input class="input-file" id="avatar" name="avatar" type="file">
          </div>
        </div>
        <div class="control-group">

          <!-- Text input-->
          <label class="control-label" for="input01">邮箱</label>
          <div class="controls">
            <input type="text" placeholder="" name="email" class="input-xlarge" {% if user_profile.email %} value="{{ user_profile.email }}"{% endif %}>
          </div>
        </div>

    <div style="margin-bottom: 15px;"></div>


    <div id="legend" class="" style="border-bottom: 1px solid #ccc;width: 50%;">

        <span class="">店小秘店铺设置</span>
      </div>
        <div class="control-group">

          <!-- Text input-->
          <label class="control-label" for="input01">店小秘用户名</label>
          <div class="controls">
            <input type="text" placeholder="" name="dxm_username" class="input-xlarge" {% if user_profile.dxm_username %} value="{{ user_profile.dxm_username }}"{% endif %}>
          </div>
        </div>
        <div class="control-group">

          <!-- Text input-->
          <label class="control-label" for="input01">店小秘密码</label>
          <div class="controls">
            <input type="text" placeholder="" name="dxm_password" class="input-xlarge" {% if user_profile.dxm_password %} value="{{ user_profile.dxm_password }}"{% endif %}>
          </div>
        </div>

    <div style="margin-bottom: 15px;"></div>
    <div class="control-group">
          <!-- Button -->
          <div class="controls">
            <button class="btn btn-success" type="submit">保存</button>
          </div>
        </div>


    </fieldset>
  </form>

        </div>




<div style="margin-bottom: 15px;"></div>

        </div>



    </div>
</div>
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="{% static '' %}default/js/bootstrap.min.js"></script>
  <script>

  </script>
  {% include 'default/tongji.html' %}
  </body>
</html>